﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace GraphAPI.Model
{
	public class Relation
	{
        
		public Relation(Entity start, Entity end, bool oriented, string name)
		{
            this.name = name;
			this.Commentary = "";
			this.startEntity = start;
			this.endEntity = end;
			this.oriented = oriented;
			this.weight = double.NaN;
			this.colorMark = Color.Empty;
		}

		private string name;

		public string Name
		{
			get { return name; }
			set { name = value; }
		}

		private double weight;
		
		public double Weight
		{
			get { return weight; }
			set { weight = value; }
		}

		private Entity startEntity;

		public Entity StartEntity
		{
			get { return startEntity; }
			set { startEntity = value; }
		}

		private Entity endEntity;

		public Entity EndEntity
		{
			get { return endEntity; }
			set { endEntity = value; }
		}

		private bool oriented;

		public bool Oriented
		{
			get { return oriented; }
			set { oriented = value; }
		}

		private Color colorMark;

		public Color ColorMark
		{
			get { return colorMark; }
			set { colorMark = value; }
		}

		private string comment;

		public string Commentary
		{
			get { return comment; }
			set { comment = value; }
		}

	}
}
